package com.example.treeHole.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class ArticleMain {
    private String articleId;

    private String articleTitle;

    private String articleTags;

    private String status;

    private String createBy;

    private String createName;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createDate;

    private String lastUpdateBy;

    private String lastUpdateName;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date lastUpdateDate;

    private String articleContent;

    //文章评论数量
    private Integer articleCount = 0;

    private String articleCategoryId;

    private String articleImage;

    /**
     * 用户名称
     */
    private String virtuallyName;

    /**
     * 用户头像
     */
    private String virtuallyImage;

    /**
     * 用户简介
     * @return
     */
    private String virtuallyIntro;

    /**
     * 所有的主回复
     */
    private List<ArticleReply> mainReply;

    /**
     * 回复ID
     */
    private String replyId;
    /**
     * 文章摘要
     */
    private String articleAbstract;
    /**
     * 点赞数量
     */
    private Integer likeCount;
    /**
     * 收藏数量
     */
    private Integer collectCount;

    /**
     * 当前用户是否点赞
     */
    private boolean likeStatus =false;

    /**
     * 当前用户是否收藏
     */
    private boolean collectStatus =false;


    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId == null ? null : articleId.trim();
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle == null ? null : articleTitle.trim();
    }

    public String getArticleTags() {
        return articleTags;
    }

    public void setArticleTags(String articleTags) {
        this.articleTags = articleTags == null ? null : articleTags.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getLastUpdateBy() {
        return lastUpdateBy;
    }

    public void setLastUpdateBy(String lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy == null ? null : lastUpdateBy.trim();
    }

    public String getLastUpdateName() {
        return lastUpdateName;
    }

    public void setLastUpdateName(String lastUpdateName) {
        this.lastUpdateName = lastUpdateName == null ? null : lastUpdateName.trim();
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent == null ? null : articleContent.trim();
    }

    public Integer getArticleCount() {
        return articleCount;
    }

    public void setArticleCount(Integer articleCount) {
        this.articleCount = articleCount;
    }

    public String getArticleCategoryId() {
        return articleCategoryId;
    }

    public void setArticleCategoryId(String articleCategoryId) {
        this.articleCategoryId = articleCategoryId;
    }

    public String getVirtuallyName() {
        return virtuallyName;
    }

    public void setVirtuallyName(String virtuallyName) {
        this.virtuallyName = virtuallyName;
    }

    public String getVirtuallyImage() {
        return virtuallyImage;
    }

    public void setVirtuallyImage(String virtuallyImage) {
        this.virtuallyImage = virtuallyImage;
    }

    public String getVirtuallyIntro() {
        return virtuallyIntro;
    }

    public void setVirtuallyIntro(String virtuallyIntro) {
        this.virtuallyIntro = virtuallyIntro;
    }

    public List<ArticleReply> getMainReply() {
        return mainReply;
    }

    public void setMainReply(List<ArticleReply> mainReply) {
        this.mainReply = mainReply;
    }

    public String getArticleImage() {
        return articleImage;
    }

    public void setArticleImage(String articleImage) {
        this.articleImage = articleImage;
    }

    public String getReplyId() {
        return replyId;
    }

    public void setReplyId(String replyId) {
        this.replyId = replyId;
    }

    public String getArticleAbstract() {
        return articleAbstract;
    }

    public void setArticleAbstract(String articleAbstract) {
        this.articleAbstract = articleAbstract;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public boolean isLikeStatus() {
        return likeStatus;
    }

    public void setLikeStatus(boolean likeStatus) {
        this.likeStatus = likeStatus;
    }

    public boolean isCollectStatus() {
        return collectStatus;
    }

    public void setCollectStatus(boolean collectStatus) {
        this.collectStatus = collectStatus;
    }
}